import { formatBigNumber } from "@/comm/format";
import { getTooltip } from "@/comm/tooltip";
/**公共的位置设置 */
const grid = {
    top: "6%",
    left: "10%",
    right: "5%",
    bottom: "24%"
};
export const BalanceHistory: echarts.EChartOption = {
    tooltip: getTooltip(),
    legend: {
        show: true,
        left: "2%",
        bottom: "3%",
        textStyle: {
            color: "#ffffff"
        },
        data: ["Email", "Union Ads", "Video Ads"]
    },
    grid: grid,
    xAxis: [
        {
            type: "category",
            boundaryGap: false,
            data: ["a", "b", "c", "d", "e", "f", "g"]
        }
    ],
    yAxis: [
        {
            type: "value",
            splitLine: {
                lineStyle: {
                    color: "#2E3345"
                }
            },
            axisLabel: {
                formatter: function (label: any) {
                    return formatBigNumber(label);
                }
            }
        }
    ],
    series: [
        {
            name: "a",
            type: "line",
            stack: "Total",
            showSymbol: false,
            areaStyle: {},
            emphasis: {
                // focus: 'series'
            },
            data: [120, 132, 101, 134, 90, 230, 210]
        }
        // {
        //     name: 'b',
        //     type: 'line',
        //     stack: 'Total',
        //     showSymbol:false,
        //     areaStyle: {},
        //     emphasis: {
        //         // focus: 'series'
        //     },
        //     data: [220, 182, 191, 234, 290, 330, 310]
        // },
        // {
        //     name: 'c',
        //     type: 'line',
        //     stack: 'Total',
        //     showSymbol:false,
        //     areaStyle: {},
        //     emphasis: {
        //         //@ts-ignore
        //         focus: 'series'
        //     },
        //     data: [150, 232, 201, 154, 190, 330, 410]
        // },
    ]
};
